home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / nt / sp3_39.exe / NTAS / OEMNADDS.IN_ / OEMNADDS.IN
INI File  |  1994-10-04  |  69KB  |  1,530 lines

  1. [Identification]
  2.     OptionType = NetAdapter
  3. [PlatformsSupported]
  4.     ISA
  5.     EISA
  6.     "Jazz-Internal Bus"
  7.     MCA
  8. [LanguagesSupported]
  9.     ENG
  10. [Options]
  11.     DigiBoardCX
  12.     DigiBoardXem
  13.     DigiBoard8i
  14.     DigiBoard16i
  15.     DigiBoard2Port
  16.     DigiBoard4Port
  17.     DigiBoard8Port
  18.     DigiBoard4e
  19.     DigiBoard8e
  20.     DigiBoard16e
  21. [OptionsMCA]
  22.     DigiBoardCX
  23.     DigiBoardXem
  24.     DigiBoard4i
  25.     DigiBoard8i
  26.     DigiBoard16i
  27.     DigiBoard2Port
  28.     DigiBoard4Port
  29.     DigiBoard8Port
  30. [AdapterInfo]
  31.     DigiBoardCX     = "C/X",    ntcx,       ntcx,     3,        {84240}
  32.     DigiBoardXem    = "PC/Xem", ntxem,      ntxem,    2,        {149776}
  33.     DigiBoard8i     = "PC/8i",  nt8i,       ntxall,   1,        {0}
  34.     DigiBoard16i    = "PC/16i", nt16i,      ntxall,   9,        {0}
  35.     DigiBoard2Port  = "2Port",  2Port,      ntxall,   4,        {0}
  36.     DigiBoard4Port  = "4Port",  4Port,      ntxall,   6,        {0}
  37.     DigiBoard8Port  = "8Port",  8Port,      ntxall,   7,        {0}
  38.     DigiBoard4e     = "PC/4e",  nt4e,       ntxall,   5,        {0}
  39.     DigiBoard8e     = "PC/8e",  nt8e,       ntxall,   0,        {0}
  40.     DigiBoard16e    = "PC/16e", nt16e,      ntxall,   8,        {0}
  41. [AdapterInfoMCA]
  42.     DigiBoardCX     = "MC C/X", ntcx,       ntcx,     3,        {28652,28648},   {236,232},  {111,111}
  43.     DigiBoardXem    = "MC/Xem", ntxem,      ntxem,    2,        {32668},         {156},      {127}
  44.     DigiBoard4i     = "MC/4i",  nt4i,       ntxall,   10,       {32666,32665},   {154,153},  {127,127}
  45.     DigiBoard8i     = "MC/8i",  nt8i,       ntxall,   1,        {32666,32665},   {154,153},  {127,127}
  46.     DigiBoard16i    = "MC/16i", nt16i,      ntxall,   9,        {32667},         {155},      {127}
  47.     DigiBoard2Port  = "2Port",  2Port,      ntxall,   4,        {28647},         {231},      {111}
  48.     DigiBoard4Port  = "4Port",  4Port,      ntxall,   6,        {28647},         {231},      {111}
  49.     DigiBoard8Port  = "8Port",  8Port,      ntxall,   7,        {28647},         {231},      {111}
  50. [FileConstants]
  51.     ExitState   = "Active"
  52.     OldVersionExisted = $(FALSE)
  53.     HdwDriverComponentExists = $(FALSE)
  54.     DriverPath      = $(!STF_NTPATH)"\drivers"
  55.     UtilityInf     = "UTILITY.INF"
  56.     subroutninf    = "SUBROUTN.INF"
  57.     ParamInf        = "NCPARAM.INF"
  58.     HandleNull   = ""
  59.     DGCONFIG_HANDLE = $(HandleNull)
  60. AdapterList = ^(AdapterInfo$(BusType),0)
  61. AdapterTitleList = ^(AdapterInfo$(BusType), 1)
  62. AdapterHardwareNameList = ^(AdapterInfo$(BusType), 2)
  63. AdapterHardwareDriverList = ^(AdapterInfo$(BusType), 3)
  64. AdapterHardwareTypeList = ^(AdapterInfo$(BusType), 4)
  65. AdapterHardwareAdapterIDList = ^(AdapterInfo$(BusType), 5)
  66. AdapterIDByte1List = ^(AdapterInfo$(BusType), 6)
  67. AdapterIDByte2List = ^(AdapterInfo$(BusType), 7)
  68. AdapterTitle = *($(AdapterTitleList), ~($(AdapterList), $(Option)))
  69. AdapterHardwareName = *($(AdapterHardwareNameList), ~($(AdapterList), $(Option)))
  70. AdapterHardwareDriver = *($(AdapterHardwareDriverList), ~($(AdapterList), $(Option)))
  71. AdapterHardwareType = *($(AdapterHardwareTypeList), ~($(AdapterList), $(Option)))
  72. AdapterHardwareAdapterID = *($(AdapterHardwareAdapterIDList), ~($(AdapterList), $(Option)))
  73. AdapterIDByte1 = *($(AdapterIDByte1List), ~($(AdapterList), $(Option)))
  74. AdapterIDByte2 = *($(AdapterIDByte2List), ~($(AdapterList), $(Option)))
  75. AdapterRule = *($(AdapterHardwareDriverList), ~($(AdapterList), $(Option)))
  76. AdapterServiceName = ""
  77. AdapterName = ""
  78.     NetEventDLL     = "%SystemRoot%\System32\netevent.dll"
  79.     IoLogMsgDLL     = "%SystemRoot%\System32\IoLogMsg.dll"
  80.     Manufacturer    = "DigiBoard"
  81.     ProductMajorVersion     = "3"
  82.     ProductMinorVersion     = "1"
  83.     ProductVersion  = $(ProductMajorVersion)"."$(ProductMinorVersion)
  84.     SoftwareType    = "driver"
  85.     ProductSoftwareName     = "DigiFEP5"
  86.     ProductSoftwareImagePath = "%SystemRoot%\System32\drivers\digifep5.sys"
  87.     NetRuleSoftwareType     = "digiFEP5Sys serialDriver digiFEP5Driver"
  88.     NetRuleSoftwareUse      = $(SoftwareType)
  89.     NetRuleSoftwareBindForm = """DigiFEP5Driver"" yes no container"
  90.     NetRuleSoftwareClass    = {"serialDriver basic","digiFEP5Driver basic"}
  91.     NetRuleSoftwareHiddenDriver   = 1
  92.     ProductMajorVersionHdwDriver     = "3"
  93.     ProductMinorVersionHdwDriver     = "1"
  94.     ProductVersionHdwDriver  = $(ProductMajorVersionHdwDriver)"."$(ProductMinorVersionHdwDriver)
  95.     ProductSoftwareNameHdwDriver = $(AdapterHardwareDriver)
  96.     ProductSoftwareImagePathHdwDriver = "%SystemRoot%\System32\drivers\"$(AdapterHardwareDriver)".sys"
  97.     NetRuleSoftwareTypeHdwDriver     = $(AdapterHardwareDriver)"sys "$(AdapterHardwareDriver)"Driver"
  98.     NetRuleSoftwareUseHdwDriver      = $(SoftwareType)
  99.     NetRuleSoftwareBindFormHdwDriver = """"$(AdapterHardwareDriver)"Driver"" yes no container"
  100.     NetRuleSoftwareClassHdwDriver    = {$(AdapterHardwareDriver)"Driver basic"}
  101.     NetRuleSoftwareHiddenHdwDriver   = 1
  102.     NetRuleHardwareType     = $(AdapterRule)" "$(AdapterRule)"Adapter"
  103.     NetRuleHardwareBindForm = " yes yes container"
  104.     NetRuleHardwareClass    = {$(AdapterHardwareDriver)"Adapter basic"}
  105.     ProductHardwareName         = $(AdapterHardwareDriver)
  106.     AdapterParameters = {}
  107.     ProductKeyName  = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
  108.     ProductKeyNameHdwDriver  = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareNameHdwDriver)"\CurrentVersion"
  109.     ParamKeyName    = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters"
  110. [GeneralConstants]
  111.     ExitCodeOk     = 0
  112.     ExitCodeCancel = 1
  113.     ExitCodeFatal  = 2
  114.     KeyNull         = ""
  115.     MAXIMUM_ALLOWED   = 33554432
  116.     RegistryErrorIndex = NO_ERROR
  117.     KeyProduct      = ""
  118.     KeyParameters   = ""
  119.     TRUE         = 1
  120.     FALSE        = 0
  121.     NoTitle      = 0
  122.     fRemoveDigi = TRUE
  123. [DebugOptions]
  124.     !DebugOutputControl = 0
  125. [UiVars]
  126. from      = ""
  127. to        = ""
  128.     !STF_NTDRIVE        = ""
  129.     !STF_NTPATH         = ""
  130.     !STF_WINDOWSPATH    = "" ? $(!LIBHANDLE) GetWindowsNtDir
  131.     !STF_WINDOWSSYSPATH = "" ? $(!LIBHANDLE) GetWindowsNtSysDir
  132.     !STF_FLOPPYLIST     = {} ? $(!LIBHANDLE) GetFloppyDriveLetters
  133.     !STF_UNUSEDDRIVES   = {} ? $(!LIBHANDLE) GetUnusedDrives
  134.     !STF_LANGUAGE       = "ENG"
  135.     VolumeList      = {} ? $(!LIBHANDLE) GetHardDriveLetters
  136.     VolumeFreeList  = {} ? $(!LIBHANDLE) GetHardDriveFreeSpace
  137.     VolumeFSList    = {} ? $(!LIBHANDLE) GetHardDriveFileSystems
  138.     DestVolume      = ""
  139.     MinHelpID   = 25000
  140.     MaxHelpID   = 25999
  141. [date]
  142.     Now = {} ? $(!LIBHANDLE) GetSystemDate
  143. [Identify]
  144.     read-syms Identification
  145.     set Status     = STATUS_SUCCESSFUL
  146.     set Identifier = $(OptionType)
  147.     set Media      = #("Source Media Descriptions", 1, 1)
  148.     Return $(Status) $(Identifier) $(Media)
  149. [ReturnOptions]
  150.     set Status        = STATUS_FAILED
  151.     set OptionList     = {}
  152.     set OptionTextList = {}
  153.     set LanguageList = ^(LanguagesSupported, 1)
  154.     Ifcontains(i) $($0) in $(LanguageList)
  155.         ifstr(i) $($1) == ""
  156.             goto returnoptions
  157.         endif
  158.         set PlatformList = ^(PlatformsSupported, 1)
  159.         Ifcontains(i) $($1) in $(PlatformList)
  160.             goto returnoptions
  161.         else
  162.             set Status = STATUS_NOTSUPPORTED
  163.             goto finish_ReturnOptions
  164.         endif
  165.     Else
  166.         set Status = STATUS_NOLANGUAGE
  167.         goto finish_ReturnOptions
  168.     Endif
  169. returnoptions = +
  170.     ifstr(i) $($1) == "MCA"
  171.       set OptionList     = ^(OptionsMCA, 1)
  172.       set OptionTextList = ^(OptionsTextMCA$($0), 1)
  173.       set Status         = STATUS_SUCCESSFUL
  174.     else
  175.       set OptionList     = ^(Options, 1)
  176.       set OptionTextList = ^(OptionsText$($0), 1)
  177.       set Status         = STATUS_SUCCESSFUL
  178.     endif
  179. finish_ReturnOptions = +
  180.     Return $(Status) $(OptionList) $(OptionTextList)
  181. [Shell Commands]
  182.     set-title "Serial Setup"
  183.     set-subst LF = "\n"
  184.     set Exit_Code = $(ExitCodeOk)
  185.     Debug-Output "OEMNADDS.INF: STF_CWDDIR is "$(!STF_CWDDIR)
  186.     Debug-Output "OEMNADDS.INF: STF_RANFROM is "$(!STF_RANFROM)
  187.     ifstr(i) $(!STF_RANFROM) != ""
  188.         ifstr(i) $(!STF_RANFROM) != $(!STF_CWDDIR)"SERIAL\"
  189.            set !STF_SRCDIR = $(!STF_RANFROM)
  190.         endif
  191.     endif
  192.     LoadLibrary "x" $(!STF_CWDDIR)setupdll.dll !LIBHANDLE
  193.     shell "" InstallOption ENG DigiBoard $(!STF_SRCDIR)
  194.     FreeLibrary $(!LIBHANDLE)
  195.     set Status = $($R0)
  196.     Return $(Status)
  197. [InstallOption]
  198.     read-syms DebugOptions
  199.     Debug-Output "OEMNADDS.INF: In [InstallOption] section"
  200.     set Status = STATUS_FAILED
  201.     set Option    = $($1)
  202.     set SrcDir    = $($2)
  203.     set AddCopy   = $($3)
  204.     set DoCopy    = $($4)
  205.     set DoConfig  = $($5)
  206.     set !SourceDir = $($2)
  207.     set BusType = ""
  208.     ifstr(i) $(!STF_BUSTYPE) == "MCA"
  209.       set BusType = "MCA"
  210.     endif
  211.     read-syms GeneralConstants
  212.     read-syms FileConstants
  213.     Debug-Output "OEMNADDS.INF: Language = "$($0)
  214.     Debug-Output "OEMNADDS.INF: OptionID = "$($1)
  215.     Debug-Output "OEMNADDS.INF: SourceDirectory = "$($2)
  216.     Debug-Output "OEMNADDS.INF: AddCopy = "$(AddCopy)
  217.     Debug-Output "OEMNADDS.INF: DoCopy = "$(DoCopy)
  218.     Debug-Output "OEMNADDS.INF: DoConfig = "$(DoConfig)
  219.     set LanguageList = ^(LanguagesSupported, 1)
  220.     Ifcontains(i) $($0) NOT-IN $(LanguageList)
  221.         Debug-Output "OEMNADDS.INF: returning STATUS_NO_LANGUAGE"
  222.         return STATUS_NOLANGUAGE
  223.     Endif
  224.     set-subst LF = "\n"
  225.     Debug-Output "OEMNADDS.INF: AdapterTitle = "$(AdapterTitle)
  226.     Debug-Output "OEMNADDS.INF: AdapterHardwareName = "$(AdapterHardwareName)
  227.     Debug-Output "OEMNADDS.INF: AdapterHardwareDriver = "$(AdapterHardwareDriver)
  228.     read-syms BindingInfo-DigiFEP5
  229.     set NetRuleSoftwareBindable = $(BindingInfo)
  230.     read-syms BindingInfo-$(AdapterHardwareDriver)
  231.     set NetRuleSoftwareBindableHdwDriver = $(BindingInfo)
  232.     read-syms DialogConstants$(!STF_LANGUAGE)
  233.     ifstr(i) $(!NTN_Origination) == "NCPA"
  234.         set Continue = "OK"
  235.     endif
  236.     read-syms FileConstants$(!STF_LANGUAGE)
  237.     detect date
  238.     set-title  $(FunctionTitle)
  239.     set to   = Begin
  240.     set from = Begin
  241.     set CommonStatus = STATUS_SUCCESSFUL
  242.     EndWait
  243. Begin = +
  244.     Ifstr(i) $(!NTN_InstallMode) == deinstall
  245.         set StartLabel = removeadapter
  246.     else-Ifstr(i) $(!NTN_InstallMode) == Update
  247.         set StartLabel = UpgradeSoftware
  248.     else-Ifstr(i) $(!NTN_InstallMode) == bind
  249.         set StartLabel = bindingadapter
  250.     else-Ifstr(i) $(!NTN_InstallMode) == configure
  251.         set StartLabel = getAdapterSettings
  252.         Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  253.             Debug-Output "Cannot configure the DigiBoard FEP 5 driver software."
  254.             Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
  255.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  256.                 Debug-Output "ShellCode error: cannot get an error string."
  257.                 goto ShellCodeError
  258.             endif
  259.             set Error = $($R0)
  260.             set from = end
  261.             set to = end
  262.             goto nonfatalinfo
  263.         endif
  264.         Ifstr(i) $(ProductKeyNameHdwDriver) == $(!NTN_RegBase)
  265.             Debug-Output "This should not have happened!  Cannot configure the "$(AdapterHardwareName)" driver software."
  266.             Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
  267.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  268.                 Debug-Output "ShellCode error: cannot get an error string."
  269.                 goto ShellCodeError
  270.             endif
  271.             set Error = $($R0)
  272.             set from = end
  273.             set to = end
  274.             goto nonfatalinfo
  275.         endif
  276.         Debug-Output "We need to determine how to find out which adapter"
  277.         Debug-Output "  we should be configuring!!!!!!"
  278.         set from = writeparameters
  279.         Debug-Output "setting from = "$(from)
  280.     else
  281.         set StartLabel = installadapter
  282.         set OEM_ABANDON_OPTIONS = {}
  283.         set OEM_ABANDON_SOFTWARE = FALSE
  284.         set OEM_ABANDON_ON = TRUE
  285.     endif
  286.     Debug-Output "OEMNADDS.INF: Option is: "$(Option)
  287.     set to = $(fatal)
  288.     Goto $(StartLabel)
  289. installadapter = +
  290.     Debug-Output "******************Entering installadapter******************"
  291.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  292.     Ifstr $(KeyProduct) != $(KeyNull)
  293.         CloseRegKey $(KeyProduct)
  294.         ifstr(i) $(!NTN_RegBase) == $(ProductKeyName)
  295.            Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+
  296.                $(ProductVersion)
  297.            ifint $($ShellCode) != $(!SHELL_CODE_OK)
  298.                Debug-Output "ShellCode error: Don't allow installation of software."
  299.                goto ShellCodeError
  300.            endif
  301.            goto end
  302.         else
  303.             OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyNameHdwDriver) +
  304.                        $(MAXIMUM_ALLOWED) KeyProductHdwDriver
  305.             Ifstr $(KeyProductHdwDriver) != $(KeyNull)
  306.                 CloseRegKey $(KeyProductHdwDriver)
  307.                 Shell $(UtilityInf), CardExistedDlg
  308.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  309.                     Debug-Output "ShellCode error: --One adapter all ready exists, install another-- FAILED."
  310.                     goto ShellCodeError
  311.                 endif
  312.                 ifstr(i) $($R1) != "OK"
  313.                     goto end
  314.                 endif
  315.                 set HdwDriverComponentExists = $(TRUE)
  316.             EndIf   
  317.             set OldVersionExisted = $(TRUE)
  318.         endif
  319.     endif
  320.     goto skipoptions
  321. skipoptions = +
  322.     Debug-Output "******************Entering skipoptions******************"
  323.     ifint $(HdwDriverComponentExists) == $(TRUE)
  324.         ifstr(i) $(!NTN_InstallMode) == configure
  325.             goto getAdapterSettings
  326.         endif
  327.     endif
  328.     StartWait
  329.     ifint $(HdwDriverComponentExists) == $(FALSE)
  330.         ifstr(i) $(!NTN_InstallMode) == "install"
  331.            shell $(UtilityInf) AssignAdapterNumber
  332.            set AdapterName = $(ProductHardwareName)$($R1)
  333.            Ifstr(i) $(DoCopy) == "YES"
  334.               Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
  335.               Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  336.                   Debug-Output"Shell code error: DoAskSource"
  337.                   Goto ShellCodeError
  338.               Else-Ifstr(i) $($R0) == STATUS_FAILED
  339.                   Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
  340.                   ifint $($ShellCode) != $(!SHELL_CODE_OK)
  341.                       goto ShellCodeError
  342.                   endif
  343.                   set Error = $($R0)
  344.                   Goto fatal
  345.               Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
  346.                   set CommonStatus = STATUS_USERCANCEL
  347.                   Goto successful
  348.               Endif
  349.               Set SrcDir = $($R1)
  350.            Endif
  351.            install "Install-Option"
  352.            ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  353.               Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
  354.               ifint $($ShellCode) != $(!SHELL_CODE_OK)
  355.                   goto ShellCodeError
  356.               endif
  357.               set Error = $($R0)
  358.               goto fatal
  359.            endif
  360.         endif
  361.     endif
  362.     set from = addDigiFEP5Component
  363.     goto getAdapterSettings
  364. addDigiFEP5Component = +
  365.     Debug-Output "******************Entering addDigiFEP5Component******************"
  366.     Ifint $(OldVersionExisted) == $(TRUE)
  367.         goto addHdwDriverComponent
  368.     Endif
  369.     Debug-Output "OEMNADDS.INF: Adding DigiFEP5Component"
  370.         set DigiSpecificString = $(ProductSoftwareName)
  371.         set TypeofService = "kernelautostart"
  372.         set ServiceOrderGroup = "Extended base"
  373.         set Dependencies = {}
  374.         set ObjectName = ""
  375.         set TypeSupported = "7"
  376.         set EventLogLocation = "System"
  377.         set ErrorControlValue = 1
  378.         Debug-Output "OEMNADDS.INF: [InstallOption]:skipoptions: About to call AddSoftwareComponent"
  379.         Debug-Output "OEMNADID.INF:     Paramters passed in:"
  380.         Debug-Output "OEMNADDS.INF:         Manufacturer = "$(Manufacturer)
  381.         Debug-Output "OEMNADDS.INF:         Product = "$(ProductSoftwareName)
  382.         Debug-Output "OEMNADDS.INF:         Service = "$(ProductSoftwareName)
  383.         Debug-Output "OEMNADDS.INF:         Display name = "$(ProductSoftwareTitle)
  384.         Debug-Output "OEMNADDS.INF:         INFfile = "$(STF_CONTEXTINFNAME)
  385.         Debug-Output "OEMNADDS.INF:         ImagePath = "$(ProductSoftwareImagePath)
  386.         Debug-Output "OEMNADDS.INF:         Type of software = "$(TypeofService)
  387.         Debug-Output "OEMNADDS.INF:         Service Order group = "$(ServiceOrderGroup)
  388.         Debug-Output "OEMNADDS.INF:         Dependencies = "$(Dependencies)
  389.         Debug-Output "OEMNADDS.INF:         ObjectName = "$(ObjectName)
  390.         Debug-Output "OEMNADDS.INF:         EventMessageFile = "$(IoLogMsgDLL)";"$(ProductSoftwareImagePath)
  391.         Debug-Output "OEMNADDS.INF:         TypeSupported = "$(TypeSupported)
  392.         Debug-Output "OEMNADDS.INF:         Event log location = "$(EventLogLocation)
  393.         Debug-Output "OEMNADDS.INF:         Error control value = "$(ErrorControlValue)
  394.         Shell $(UtilityInf), AddSoftwareComponent, +
  395.                                     $(Manufacturer), +
  396.                                     $(ProductSoftwareName), +
  397.                                     $(ProductSoftwareName), +
  398.                                     $(ProductSoftwareTitle), +
  399.                                     $(STF_CONTEXTINFNAME), +
  400.                                     $(ProductSoftwareImagePath), +
  401.                                     $(TypeofService), +
  402.                                     $(ServiceOrderGroup), +
  403.                                     $(Dependencies), +
  404.                                     $(ObjectName), +
  405.                                     $(IoLogMsgDLL)";"$(ProductSoftwareImagePath), +
  406.                                     $(TypeSupported), +
  407.                                     $(EventLogLocation), +
  408.                                     $(ErrorControlValue)
  409.         Set OEM_ABANDON_SOFTWARE = TRUE
  410.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  411.             Debug-Output "ShellCode error: Add software component FAILED!"
  412.             goto ShellCodeError
  413.         endif
  414.         set RegistryErrorIndex = $($R0)
  415.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  416.             EndWait
  417.             Debug-Output "Registry error: add software components"
  418.             CloseRegKey $($R1)
  419.             CloseRegKey $($R2)
  420.             CloseRegKey $($R3)
  421.             CloseRegKey $($R4)
  422.             CloseRegKey $($R5)
  423.             goto fatalregistry
  424.         endif
  425.         Set SoftProductKey      = $($R1)
  426.         Set SoftNetRuleKey      = $($R2)
  427.         Set SoftServiceKey      = $($R3)
  428.         Set SoftParameterKey    = $($R4)
  429.         Set SoftLinkageKey      = $($R5)
  430.         set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
  431.                            {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
  432.                            {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
  433.                            {Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
  434.                            {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
  435.                            {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+
  436.                            {hidden,$(NoTitle),$(!REG_VT_DWORD),$(NetRuleSoftwareHiddenDriver)}, +
  437.                            {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  438.         Shell  $(UtilityInf), AddValueList, $(SoftProductKey), $(NewValueList)
  439.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  440.             Debug-Output "ShellCode error: AddValueList FAILED!  --"$(SoftProductKey)
  441.             goto ShellCodeError
  442.         endif
  443.         set RegistryErrorIndex = $($R0)
  444.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  445.             EndWait
  446.             Debug-Output "Registry error: add value list."
  447.             CloseRegKey $(SoftProductKey)
  448.             CloseRegKey $(SoftNetRuleKey)
  449.             CloseRegKey $(SoftServiceKey)
  450.             CloseRegKey $(SoftParameterKey)
  451.             CloseRegKey $(SoftLinkageKey)
  452.             goto fatalregistry
  453.         endif
  454.         set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareType)},+
  455.                             {use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
  456.                             {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
  457.                             {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, +
  458.                             {bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareBindable)}, +
  459.                             {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  460.         Shell  $(UtilityInf), AddValueList, $(SoftNetRuleKey), $(NewValueList)
  461.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  462.             Debug-Output "ShellCode error: AddValueList FAILED! --"$(SoftNetRuleKey)
  463.             goto ShellCodeError
  464.         endif
  465.         set RegistryErrorIndex = $($R0)
  466.         FlushRegKey $(SoftProductKey)
  467.         FlushRegKey $(SoftNetRuleKey)
  468.         FlushRegKey $(SoftServiceKey)
  469.         FlushRegKey $(SoftParameterKey)
  470.         FlushRegKey $(SoftLinkageKey)
  471.         CloseRegKey $(SoftProductKey)
  472.         CloseRegKey $(SoftNetRuleKey)
  473.         CloseRegKey $(SoftServiceKey)
  474.         CloseRegKey $(SoftParameterKey)
  475.         CloseRegKey $(SoftLinkageKey)
  476.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  477.             EndWait
  478.             Debug-Output "Registry error: add value list."
  479.             goto fatalregistry
  480.         endif
  481.         goto addHdwDriverComponent
  482. addHdwDriverComponent = +
  483.     Debug-Output "******************Entering addHdwDriverComponent******************"
  484.     set DigiSpecificString = $(AdapterHardwareName)
  485.     Ifint $(HdwDriverComponentExists) == $(TRUE)
  486.         goto addAdapterComponent
  487.     Endif
  488.     Debug-Output "OEMNADDS.INF: Adding HdwDriverComponent"
  489.         set TypeofService = "kernelautostart"
  490.         set ServiceOrderGroup = "Extended base"
  491.         set Dependencies = {}
  492.         set ObjectName = ""
  493.         set TypeSupported = "7"
  494.         set EventLogLocation = "System"
  495.         set ErrorControlValue = 1
  496.         Shell $(UtilityInf), AddSoftwareComponent, +
  497.                                     $(Manufacturer), +
  498.                                     $(ProductSoftwareNameHdwDriver), +
  499.                                     $(ProductSoftwareNameHdwDriver), +
  500.                                     $(ProductSoftwareTitleHdwDriver), +
  501.                                     $(STF_CONTEXTINFNAME), +
  502.                                     $(ProductSoftwareImagePathHdwDriver), +
  503.                                     $(TypeofService), +
  504.                                     $(ServiceOrderGroup), +
  505.                                     $(Dependencies), +
  506.                                     $(ObjectName), +
  507.                                     $(IoLogMsgDLL)";"$(ProductSoftwareImagePathHdwDriver), +
  508.                                     $(TypeSupported), +
  509.                                     $(EventLogLocation), +
  510.                                     $(ErrorControlValue)
  511.         Set OEM_ABANDON_SOFTWARE = TRUE
  512.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  513.             Debug-Output "ShellCode error: AddSoftwareComponent FAILED! -- "$(ProductSoftwareNameHdwDriver)
  514.             goto ShellCodeError
  515.         endif
  516.         set RegistryErrorIndex = $($R0)
  517.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  518.             EndWait
  519.             Debug-Output "Registry error: add software components"
  520.             CloseRegKey $($R1)
  521.             CloseRegKey $($R2)
  522.             CloseRegKey $($R3)
  523.             CloseRegKey $($R4)
  524.             CloseRegKey $($R5)
  525.             goto fatalregistry
  526.         endif
  527.         Set SoftProductKey      = $($R1)
  528.         Set SoftNetRuleKey      = $($R2)
  529.         Set SoftServiceKey      = $($R3)
  530.         Set SoftParameterKey    = $($R4)
  531.         Set SoftLinkageKey      = $($R5)
  532.         set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
  533.                            {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersionHdwDriver)},+
  534.                            {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersionHdwDriver)},+
  535.                            {Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitleHdwDriver)},+
  536.                            {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescriptionHdwDriver)},+
  537.                            {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareNameHdwDriver)},+
  538.                            {hidden,$(NoTitle),$(!REG_VT_DWORD),$(NetRuleSoftwareHiddenHdwDriver)}, +
  539.                            {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  540.         Shell  $(UtilityInf), AddValueList, $(SoftProductKey), $(NewValueList)
  541.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  542.             Debug-Output "ShellCode error: AddValueList FAILED!  -- "$(SoftProductKey)
  543.             goto ShellCodeError
  544.         endif
  545.         set RegistryErrorIndex = $($R0)
  546.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  547.             EndWait
  548.             Debug-Output "Resgitry error: add value list."
  549.             CloseRegKey $(SoftProductKey)
  550.             CloseRegKey $(SoftNetRuleKey)
  551.             CloseRegKey $(SoftServiceKey)
  552.             CloseRegKey $(SoftParameterKey)
  553.             CloseRegKey $(SoftLinkageKey)
  554.             goto fatalregistry
  555.         endif
  556.         set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareTypeHdwDriver)},+
  557.                             {use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUseHdwDriver)}, +
  558.                             {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindFormHdwDriver)}, +
  559.                             {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClassHdwDriver)}, +
  560.                             {bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareBindableHdwDriver)}, +
  561.                             {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  562.         Shell  $(UtilityInf), AddValueList, $(SoftNetRuleKey), $(NewValueList)
  563.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  564.             Debug-Output "ShellCode error. AddValueList FAILED!  -- "$(SoftNetRuleKey)
  565.             goto ShellCodeError
  566.         endif
  567.         set RegistryErrorIndex = $($R0)
  568.         FlushRegKey $(SoftProductKey)
  569.         FlushRegKey $(SoftNetRuleKey)
  570.         FlushRegKey $(SoftServiceKey)
  571.         FlushRegKey $(SoftParameterKey)
  572.         FlushRegKey $(SoftLinkageKey)
  573.         CloseRegKey $(SoftProductKey)
  574.         CloseRegKey $(SoftNetRuleKey)
  575.         CloseRegKey $(SoftServiceKey)
  576.         CloseRegKey $(SoftParameterKey)
  577.         CloseRegKey $(SoftLinkageKey)
  578.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  579.             EndWait
  580.             Debug-Output "Registry error: add value list."
  581.             goto fatalregistry
  582.         endif
  583. addAdapterComponent = +
  584.     Debug-Output "******************Entering addAdapterComponent******************"
  585.     Shell $(UtilityInf), AddHardwareComponent, $(ProductHardwareName), +
  586.                                     $(STF_CONTEXTINFNAME), $(ProductKeyNameHdwDriver)
  587.     ifint $($R4) != -1
  588.         Set OEM_ABANDON_OPTIONS = >($(OEM_ABANDON_OPTIONS), $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards\"$($R4))
  589.     endif
  590.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  591.         Debug-Output "Cannot add hardware component!"
  592.         goto ShellCodeError
  593.     endif
  594.     set RegistryErrorIndex = $($R0)
  595.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  596.         EndWait
  597.         Debug-Output "Registry error: add hardware component"
  598.         Debug-Output $(RegistryErrorIndex)
  599.         CloseRegKey $($R1)
  600.         CloseRegKey $($R2)
  601.         CloseRegKey $($R3)
  602.         goto fatalregistry
  603.     endif
  604.     set KeyParameters = $($R3)
  605.     set KeyAdapterRules = $($R2)
  606.     set AdapterNumber = $($R4)
  607.     set AdapterServiceName = $($R5)
  608.     set AdapterName = $(AdapterServiceName)
  609.     set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
  610.                        {Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardwareTitle)},+
  611.                        {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareDescription)},+
  612.                        {ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
  613.                        {ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
  614.                        {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  615.     Shell  $(UtilityInf), AddValueList, $($R1), $(NewValueList)
  616.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  617.         Debug-Output "ShellCode error: AddValueList FAILED  -- "$($R1)
  618.         goto ShellCodeError
  619.     endif
  620.     shell $(UtilityInf) IncrementRefCount $(ProductKeyName)
  621.     set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
  622.     set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
  623.     set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardwareType)},+
  624.                         {bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, +
  625.                         {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardwareClass)}, +
  626.                         {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  627.     Shell  $(UtilityInf), AddValueList, $(KeyAdapterRules), $(NewValueList)
  628.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  629.         Debug-Output "ShellCode error."
  630.         goto ShellCodeError
  631.     endif
  632.     set RegistryErrorIndex = $($R0)
  633.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  634.         EndWait
  635.         Debug-Output "Resgitry error: add value list."
  636.         CloseRegKey $(KeyParameters)
  637.         CloseRegKey $(KeyAdapterRules)
  638.         goto fatalregistry
  639.     endif
  640.     FlushRegKey $(KeyParameters)
  641.     FlushRegKey $(KeyAdapterRules)
  642.     CloseRegKey $(KeyParameters)
  643.     CloseRegKey $(KeyAdapterRules)
  644.     goto writeparameters
  645. configureadapter = +
  646.     Debug-Output "******************Entering configureadapter******************"
  647.     Debug-Output "OEMNADDS.INF: PortNameList = "$(PortNameList)
  648.     QueryListSize IRQRangeListSize $(IRQRangeList)
  649.     QueryListSize MemoryRangeListSize $(MemoryRangeList)
  650.     QueryListSize IORangeListSize $(IORangeList)
  651.     QueryListSize PortNameListSize $(PortNameList)
  652.     LibraryProcedure Result, $(DGCONFIG_HANDLE), +
  653.             DGConfigEntryPoint, $(!STF_HWND), $(AdapterHardwareType), +
  654.                 $(ConfigurationTitle), +
  655.                 $(IRQRangeList), +
  656.                 $(IRQRangeListSize), +
  657.                 $(IRQDefault), +
  658.                 $(MemoryRangeList), +
  659.                 $(MemoryRangeListSize), +
  660.                 $(MemoryDefault), +
  661.                 $(IORangeList), +
  662.                 $(IORangeListSize), +
  663.                 $(IODefault), +
  664.                 $(CtrlList), +
  665.                 $(AdapterName)
  666.     Debug-Output $(Result)
  667.     Ifstr $(Result) == "{}"
  668.         set CommonStatus = STATUS_USERCANCEL
  669.         goto successful
  670.     Endif
  671.     set AdapterParameters = $(Result)
  672.     read-syms UpdatingConfiguration$(!STF_LANGUAGE)
  673.     shell $(subroutninf) PushBillBoard NETSTATUSDLG $(UpdatingConfiguration)
  674.     Debug-Output "jumping to "$(from)
  675.     goto $(from)
  676. getAdapterSettings = +
  677.     Debug-Output "******************Entering getAdapterSettings******************"
  678.     Debug-Output "from value = "$(from)
  679.     set IRQDefault = 0
  680.     set MemoryDefault = 3
  681.     set IODefault = 4
  682.     set CtrlList = {}
  683.     LoadLibrary "x" dgconfig.dll DGCONFIG_HANDLE
  684.     read-syms AdapterSettings-$(AdapterHardwareName)
  685.     Ifstr $(!NTN_RegBase) != $(KeyNull)
  686.         OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) $(MAXIMUM_ALLOWED) SoftwareKey
  687.         Ifstr $(SoftwareKey) == $(KeyNull)
  688.             Debug-Output "Unable to open "$(!NTN_RegBase)" key!!!!"
  689.             goto getAdapterSettingsExit
  690.         Else
  691.             GetRegValue $(SoftwareKey), "ServiceName", ServiceNameList
  692.             set AdapterServiceName = *($(ServiceNameList),4)
  693.             set AdapterName = $(AdapterServiceName)
  694.             CloseRegKey $(SoftwareKey)
  695.         Endif
  696.     Endif
  697.     Debug-Output "AdapterServiceName = "$(AdapterServiceName)
  698.     Debug-Output "AdapterName = "$(AdapterName)
  699.     OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase)"\"$(AdapterServiceName) $(MAXIMUM_ALLOWED) BaseKey
  700.     Ifstr $(BaseKey) == $(KeyNull)
  701.         Debug-Output "Error opening BaseKey "$(!NTN_ServiceBase)"\"$(AdapterServiceName)
  702.         CloseRegKey $(BaseKey)
  703.         goto fatalregistry
  704.     Endif
  705.     set BusTypeNum = 1
  706.     set ParametersKey = $(KeyNull)
  707.     OpenRegKey $(BaseKey) "" "Parameters" $(MAXIMUM_ALLOWED) ParametersKey
  708.     Ifstr $(ParametersKey) == $(KeyNull)
  709.         Debug-Output "Assuming Parameters key does not exist!!!"
  710.         ifstr(i) $(BusType) == "MCA"
  711.             ForListDo $(AdapterHardwareAdapterID)
  712.                Debug-Output "Calling MCAFindBus, "*($(AdapterIDByte1),$(#))", "*($(AdapterIDByte2),$(#))
  713.                Shell $(UtilityInf), MCAFindBus, *($(AdapterIDByte1),$(#)), *($(AdapterIDByte2),$(#))
  714.                Debug-Output "MCAFindBus returned "$($R1)
  715.                set CardInfo = {}
  716.                ifstr(i) $($R1) != {}
  717.                   set CardInfo = $($R1)
  718.                   Debug-Output "MCA controller found!"
  719.                   Debug-Output "CardInfo = "$(CardInfo)
  720.                   ForListDo $(CardInfo)
  721.                      Debug-Output "Current CardInfo Entry = "$($)
  722.                      set TmpBusNumber = *($($), 1)
  723.                      set SlotNumber = *($($), 2)
  724.                      set MCAPosId = *($($), 3)
  725.                      Debug-Output "Calling DoesControllerExist:"
  726.                      Debug-Output "    AdapterHardwareName = "$(AdapterHardwareName)
  727.                      Debug-Output "    BusNumber = "$(TmpBusNumber)
  728.                      Debug-Output "    Slot # = "$(SlotNumber)
  729.                      Debug-Output " DGCONFIG_HANDLE = "$(DGCONFIG_HANDLE)
  730.                      LibraryProcedure Result, $(DGCONFIG_HANDLE), +
  731.                         DoesControllerExist, $(AdapterHardwareName), +
  732.                                              $(TmpBusNumber),        +
  733.                                              $(SlotNumber)
  734.                      Debug-Output "DoesControllerExist return: "$(Result)
  735.                      ifstr(i) $(Result) == "FALSE"
  736.                         Debug-Output "Before resetting IORangeList for MCA: "$(IORangeList)
  737.                         set IORangeList = {Slot$(SlotNumber)}
  738.                         set IODefault = 0
  739.                         Debug-Output "After resetting IORangeList for MCA: "$(IORangeList)
  740.                         Debug-Output "Before resetting MemoryRangeList for MCA: "$(MemoryRangeList)
  741.                         set MemoryDefault = 0
  742.                         set MemoryRangeList = {Slot$(SlotNumber)}
  743.                         Debug-Output "After resetting MemoryRangeList for MCA: "$(MemoryRangeList)
  744.                         set BusTypeNum = 3
  745.                         goto getAdapterSettingsExit
  746.                      endif
  747.                   EndForListDo
  748.                endif
  749.             EndForListDo
  750.         else
  751.             ForListDo $(AdapterHardwareAdapterID)
  752.               ifint $($) != 0
  753.                   Debug-Output "Calling EISAFindBus, "$($)
  754.                   Shell $(UtilityInf), EISAFindBus, $($)
  755.                   set CardInfo = {}
  756.                   ifstr(i) $($R1) != {}
  757.                      set CardInfo = $($R1)
  758.                      Debug-Output "EISA controller found!"
  759.                      Debug-Output "CardInfo = "$(CardInfo)
  760.                       ForListDo $(CardInfo)
  761.                          Debug-Output "Current CardInfo Entry = "$($)
  762.                          set TmpBusNumber = *($($), 1)
  763.                          set SlotNumber = *($($), 2)
  764.                          set-mul NewIOBaseAddress = $(SlotNumber), 4096
  765.                          set-add NewIOBaseAddress = $(NewIOBaseAddress), 5
  766.                          set-dectohex NewIOBaseAddress = $(NewIOBaseAddress)
  767.                          Debug-Output "Calling DoesControllerExist:"
  768.                          Debug-Output "    AdapterHardwareName = "$(AdapterHardwareName)
  769.                          Debug-Output "    BusNumber = "$(TmpBusNumber)
  770.                          Debug-Output "    NewIOBaseAddress = "$(NewIOBaseAddress)
  771.                          Debug-Output " DGCONFIG_HANDLE = "$(DGCONFIG_HANDLE)
  772.                          LibraryProcedure Result, $(DGCONFIG_HANDLE), +
  773.                             DoesControllerExist, $(AdapterHardwareName), +
  774.                                                  $(TmpBusNumber),        +
  775.                                                  $(NewIOBaseAddress)
  776.                          Debug-Output "DoesControllerExist return: "$(Result)
  777.                          ifstr(i) $(Result) == "FALSE"
  778.                             Debug-Output "Before resetting IORangeList for EISA: "$(IORangeList)
  779.                             set IORangeList = {$(NewIOBaseAddress)}
  780.                             set IODefault = 0
  781.                             Debug-Output "After resetting IORangeList for EISA: "$(IORangeList)
  782.                             set BusTypeNum = 2
  783.                             goto getAdapterSettingsExit
  784.                          endif
  785.                       EndForListDo
  786.                   endif
  787.                endif
  788.             EndForListDo
  789.         endif
  790.         CloseRegKey $(BaseKey)
  791.         goto configureadapter
  792.     Endif
  793.     GetRegValue $(ParametersKey) "MemoryMappedBaseAddress" MemoryMappedValueList
  794.     GetRegValue $(ParametersKey) "InterruptNumber" IRQValueList
  795.     GetRegValue $(ParametersKey) "IOBaseAddress" IOBaseValueList
  796.     ifstr(i) $(BusType) != "MCA"
  797.        set-dectohex TmpHex = *($(MemoryMappedValueList),4)
  798.        Debug-Output "Current MemoryMappedBaseAddress = "$(TmpHex)
  799.        ForListDo $(MemoryRangeList)
  800.            Ifstr(i) $(TmpHex) == "0x"$($)
  801.                set-sub MemoryDefault = $(#),1
  802.            Endif
  803.        EndForListDo
  804.     else
  805.       GetRegValue $(ParametersKey) "SlotNumber" SlotNumber
  806.       Debug-Output "SlotNumber read from registry = "*($(SlotNumber),4)
  807.       set MemoryDefault = 0
  808.       set MemoryRangeList = {Slot*($(SlotNumber),4)}
  809.     endif
  810.        set-dectohex TmpHex = *($(IRQValueList),4)
  811.        Debug-Output "Current InterruptNumber = "$(TmpHex)
  812.        ForListDo $(IRQRangeList)
  813.            Ifstr(i) $(TmpHex) == "0x"$($)
  814.                set-sub IRQDefault = $(#),1
  815.            Endif
  816.        EndForListDo
  817.     ifstr(i) $(BusType) != "MCA"
  818.        set IOFound = $(FALSE)
  819.        set-dectohex TmpHex = *($(IOBaseValueList),4)
  820.        Debug-Output "Current IOBaseAddress = "$(TmpHex)
  821.        ForListDo $(IORangeList)
  822.            Ifstr(i) $(TmpHex) == "0x"$($)
  823.                set-sub IODefault = $(#),1
  824.                set IOFound = $(TRUE)
  825.            Endif
  826.        EndForListDo
  827.        ifint $(IOFound) == $(FALSE)
  828.          set IORangeList = {$(TmpHex)}
  829.          set IODefault = 0
  830.          set BusTypeNum = 2
  831.        endif
  832.     else
  833.        set IORangeList = {Slot*($(SlotNumber),4)}
  834.        set IODefault = 0
  835.     endif
  836.     set CtrlList = {}
  837.     set LineList = {}
  838.     ForListDo {"1","2"}
  839.       set CurrentLine = "Line"$($)
  840.       Debug-Output "CurrentLine = "$(CurrentLine)
  841.       OpenRegKey $(ParametersKey) "" $(CurrentLine) $(MAXIMUM_ALLOWED) LineKey
  842.             Ifstr $(LineKey) != $(KeyNull)
  843.                set ConcList = {}
  844.                ForListDo {"1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16"}
  845.                   set CurrentConc = "Concentrator"$($)
  846.                   OpenRegKey $(LineKey) "" $(CurrentConc) $(MAXIMUM_ALLOWED) ConcKey
  847.                   Ifstr $(ConcKey) != $(KeyNull)
  848.                      set PortNameList = {}
  849.                      set CurrentPort = ""
  850.                      set PortName = {}
  851.                      ForListDo {"1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16"}
  852.                         set CurrentPort = "Port"$($)
  853.                         OpenRegKey $(ConcKey) "" $(CurrentPort) $(MAXIMUM_ALLOWED) PortKey
  854.                         Ifstr $(PortKey) != $(KeyNull)
  855.                            GetRegValue $(PortKey) "DosDevices" PortName
  856.                            Ifstr $(PortNameList) == $(KeyNull)
  857.                               set PortNameList = *($(PortName),4)
  858.                            Else
  859.                               set PortNameList = >($(PortNameList), >($(CurrentPort),*($(PortName),4)))
  860.                            Endif
  861.                            CloseRegKey $(PortKey)
  862.                         EndIf
  863.                      EndForListDo
  864.                      CloseRegKey $(ConcKey)
  865.                      set ConcList = >($(ConcList),>($(CurrentConc),$(PortNameList)))
  866.                   EndIf
  867.                EndForListDo
  868.                CloseRegKey $(LineKey)
  869.                set TmpLine = >($(CurrentLine),$(ConcList))
  870.                set LineList = >($(LineList),$(TmpLine))
  871.             Endif
  872.             Debug-Output "LineList = "$(LineList)
  873.             set CtrlList = $(LineList)
  874.     EndForListDo
  875.     CloseRegKey $(ParametersKey)
  876.     CloseRegKey $(BaseKey)
  877. getAdapterSettingsExit = +
  878.     goto configureadapter
  879. writeparameters = +
  880.     Debug-Output "******************Entering writeparameters******************"
  881.     StartWait
  882.     Debug-Output "Trying to open: "$(!NTN_ServiceBase)"\"$(AdapterServiceName)
  883.     Debug-Output "AdapterParameters:"
  884.     Debug-Output $(AdapterParameters)
  885.     OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase)"\"$(AdapterServiceName) $(MAXIMUM_ALLOWED) BaseKey
  886.     Ifstr $(BaseKey) == $(KeyNull)
  887.         Debug-Output "Error opening BaseKey "$(!NTN_ServiceBase)"\"$(AdapterServiceName)
  888.         CloseRegKey $(BaseKey)
  889.         goto fatal
  890.     Endif
  891.     OpenRegKey $(BaseKey) "" "Parameters" $(MAXIMUM_ALLOWED) ParametersKey
  892.     Ifstr $(ParametersKey) == $(KeyNull)
  893.         Debug-Output "Assuming Parameters key does not exist!!!"
  894.         CloseRegKey $(BaseKey)
  895.         goto fatal
  896.     Endif
  897.     Debug-Output "AdapterParameters parsed: "
  898.     set MemoryAddress = *($(AdapterParameters),1)
  899.     set InterruptNumber = *($(AdapterParameters),2)
  900.     set IOBaseAddress = *($(AdapterParameters),3)
  901.     set HdwDeviceName = "\Device\"$(AdapterHardwareDriver)
  902.     Debug-Output "MemoryAddress = "$(MemoryAddress)
  903.     Debug-Output "InterruptNumber = "$(InterruptNumber)
  904.     Debug-Output "IOBaseAddress = "$(IOBaseAddress)
  905.     Debug-Output "HdwDeviceName = "$(HdwDeviceName)
  906.     SetRegValue $(ParametersKey) {MemoryMappedBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(MemoryAddress)}
  907.     SetRegValue $(ParametersKey) {IOBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(IOBaseAddress)}
  908.     SetRegValue $(ParametersKey) {InterruptNumber,$(NoTitle),$(!REG_VT_DWORD),$(InterruptNumber)}
  909.     SetRegValue $(ParametersKey) {HdwDeviceName,$(NoTitle),$(!REG_VT_SZ),$(HdwDeviceName)}
  910.     SetRegValue $(ParametersKey) {BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)}
  911.     ifstr(i) $(BusType) == "MCA"
  912.       SetRegValue $(ParametersKey) {MCAPosId,$(NoTitle),$(!REG_VT_DWORD),$(MCAPosId)}
  913.       SetRegValue $(ParametersKey) {SlotNumber,$(NoTitle),$(!REG_VT_DWORD),$(SlotNumber)}
  914.     endif
  915.     set LineList = *($(AdapterParameters),4)
  916.     ForListDo $(LineList)
  917.       set LineObject = $($)
  918.       set LineName = *($(LineObject),1)
  919.       DeleteRegTree $(ParametersKey) $(LineName)
  920.       set ConcList = *($(LineObject),2)
  921.       Ifstr $(ConcList) != "{}"
  922.          shell "" ExCreateRegKey $(ParametersKey) $(LineName)
  923.          Ifstr(i) $($R0) != NO_ERROR
  924.              Debug-Output "Error creating registry key!"
  925.              set KeyHandle = $($R1)
  926.              CloseRegKey $(BaseKey)
  927.              goto fatal
  928.          Endif
  929.          set LineKey = $($R1)
  930.       Endif
  931.       ForListDo $(ConcList)
  932.          set ConcObject = $($)
  933.          set ConcName = *($(ConcObject),1)
  934.          set PortList = *($(ConcObject),2)
  935.          Debug-Output "   "$(ConcName)
  936.          Debug-Output "   "$(PortList)
  937.          shell "" ExCreateRegKey $(LineKey) $(ConcName)
  938.          Ifstr(i) $($R0) != NO_ERROR
  939.              Debug-Output "Error creating registry key!"
  940.              set KeyHandle = $($R1)
  941.              CloseRegKey $(LineKey)
  942.              goto fatal
  943.          Endif
  944.          set ConcKey = $($R1)
  945.          ForListDo $(PortList)
  946.             set PortObject = $($)
  947.             set PortName = *($(PortObject),1)
  948.             set PortDosDevices = *($(PortObject),2)
  949.             Debug-Output "      "$(PortName)"  -> "$(PortDosDevices)
  950.             shell "" ExCreateRegKey $(ConcKey) $(PortName)
  951.             Ifstr(i) $($R0) != NO_ERROR
  952.                 Debug-Output "Error creating registry key!"
  953.                 set KeyHandle = $($R1)
  954.                 CloseRegKey $(LineKey)
  955.                 goto fatal
  956.             Endif
  957.             set PortKey = $($R1)
  958.             SetRegValue $(PortKey) {DosDevices,$(NoTitle),$(!REG_VT_SZ),$(PortDosDevices)}
  959.          EndForListDo
  960.       EndForListDo
  961.     EndForListDo
  962.     EndWait
  963.     goto successful
  964. bindingadapter = +
  965.     Debug-Output "******************Entering bindingadapter******************"
  966.     LoadLibrary "x" dgconfig.dll DGCONFIG_HANDLE
  967.     set Error = "Binding: Sorry, not yet implemented."
  968.     goto fatal
  969. removeadapter = +
  970.     read-syms DebugOptions
  971.     Debug-Output "******************Entering removeadapter******************"
  972.     Debug-Output "OEMNADDS.INF: removeadapter"
  973.     Debug-Output "OEMNADDS.INF: Removing Hardware Components"
  974.     Debug-Output "OEMNADDS.INF: ProductKeyName = "$(ProductKeyName)
  975.     Debug-Output "OEMNADDS.INF: ProductSoftwareName = "$(ProductSoftwareName)
  976.     Debug-Output "OEMNADDS.INF: ProductSoftwareNameHdwDriver = "$(ProductSoftwareNameHdwDriver)
  977.     Debug-Output "OEMNADDS.INF: NTN_RegBase = "$(!NTN_RegBase)
  978.     ifstr(i) $(fRemoveDigi) == FALSE
  979.       install RemoveFiles
  980.       goto removeadapterExit
  981.     endif
  982.     LoadLibrary "x" dgconfig.dll DGCONFIG_HANDLE
  983.     Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  984.         $(ProductSoftwareNameHdwDriver), $(!NTN_RegBase)
  985.     Debug-Output "OEMNADDS.INF: RemoveHardwareComponent return value = "$($R0)
  986.     Ifstr(i) $($R0) != NO_ERROR
  987.         Debug-Output "OEMNADDS.INF: RemoveHardwareComponent != NO_ERROR"
  988.     Endif
  989.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  990.         Debug-Output "ShellCode error"
  991.         goto ShellCodeError
  992.     endif
  993.     set RegistryErrorIndex = $($R0)
  994.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  995.         Debug-Output "fatal registry error"
  996.         goto fatalregistry
  997.     endif
  998.     shell $(UtilityInf), DecrementRefCount, $(ProductKeyName)
  999.     Debug-Output "OEMNADDS.INF: DecrementRefCount return value = "$($R0)
  1000.     Ifstr(i) $($R0) != NO_ERROR
  1001.         Debug-Output "OEMNADDS.INF: DecrementRefCount != NO_ERROR"
  1002.     Endif
  1003.     Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  1004.         $(ProductSoftwareName), TRUE
  1005.     Debug-Output "RemoveSoftwareComponent return value = "$($R0)
  1006.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1007.         Debug-Output "ShellCode error"
  1008.         goto ShellCodeError
  1009.     endif
  1010.     set RegistryErrorIndex = $($R0)
  1011.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  1012.         Ifstr(i) $(RegistryErrorIndex) != REF_COUNT_NOT_ZERO
  1013.             goto fatalregistry
  1014.         endif
  1015.     endif
  1016.     install RemoveFiles
  1017. removeadapterExit = +
  1018.     Debug-Output "OEMNADDS.INF: Exiting removeadapter"
  1019.     goto end
  1020. UpgradeSoftware = +
  1021.     Debug-Output "******************Entering UpgradeSoftware******************"
  1022.     LoadLibrary "x" dgconfig.dll DGCONFIG_HANDLE
  1023.     ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  1024.         OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  1025.         Ifstr $(KeyProduct) != $(KeyNull)
  1026.             GetRegValue $(KeyProduct),"MajorVersion", VersionInfo
  1027.             set Version = *($(VersionInfo), 4)
  1028.             Split-String $(!NTN_Infname), "\", FilenameList
  1029.             QueryListSize ListSize $(FilenameList)
  1030.             set !UG_Filename = *($(FilenameList), $(ListSize))
  1031.             install "Install-Update"
  1032.             ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  1033.                 goto fatal
  1034.             endif
  1035.             SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
  1036.             SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
  1037.             ifint $(Version) != $(ProductVersion)
  1038.             endif
  1039.             CloseRegKey $(KeyProduct)
  1040.         else
  1041.             goto fatalregistry
  1042.         endif
  1043.     else
  1044.         OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) +
  1045.               $(MAXIMUM_ALLOWED) NetworkCardKey
  1046.         Ifstr(i) $(NetworkCardKey) != $(KeyNull)
  1047.             GetRegValue $(NetworkCardKey),"ServiceName", ServiceNameInfo
  1048.             set ServiceName = *($(ServiceNameInfo), 4)
  1049.             OpenRegKey $(NetworkCardKey) "" "NetRules" +
  1050.                 $(MAXIMUM_ALLOWED) NetRuleKey
  1051.             Ifstr $(NetRuleKey) != $(KeyNull)
  1052.             else
  1053.                 goto fatalregistry
  1054.             endif
  1055.             CloseRegKey $(NetRules)
  1056.             CloseRegKey $(NetworkCardKey)
  1057.         else
  1058.             goto fatalregistry
  1059.         endif
  1060.         OpenRegKey $(!REG_H_LOCAL) "" +
  1061.               $(!NTN_ServiceBase)"\"$(ServiceName) +
  1062.               $(MAXIMUM_ALLOWED) ServiceKey
  1063.         Ifstr $(ServiceKey) != $(KeyNull)
  1064.             CloseRegKey $(ServiceKey)
  1065.         else
  1066.             goto fatalregistry
  1067.         endif
  1068.     endif
  1069.     goto end
  1070. successful = +
  1071.     Debug-Output "******************Entering successful******************"
  1072.     goto end
  1073. abandon = +
  1074.     Debug-Output "******************Entering abandon******************"
  1075.     ForListDo $(OEM_ABANDON_OPTIONS)
  1076.         Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  1077.             $(ProductSoftwareName), $($)
  1078.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1079.             Debug-Output "ShellCode error"
  1080.             goto ShellCodeError
  1081.         endif
  1082.         set RegistryErrorIndex = $($R0)
  1083.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  1084.             goto fatalregistry
  1085.         endif
  1086.     EndForListDo
  1087.     Ifstr(i) $(OEM_ABANDON_SOFTWARE) == TRUE
  1088.         Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  1089.             $(ProductSoftwareName), FALSE
  1090.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1091.             Debug-Output "ShellCode error"
  1092.             goto ShellCodeError
  1093.         endif
  1094.         set RegistryErrorIndex = $($R0)
  1095.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  1096.             goto fatalregistry
  1097.         endif
  1098.     endif
  1099.     goto end
  1100. warning = +
  1101.     Debug-Output "******************Entering warning******************"
  1102.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
  1103.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1104.         goto ShellCodeError
  1105.     endif
  1106.     ifstr(i) $($R1) == "OK"
  1107.         goto $(to)
  1108.     else-ifstr(i) $($R1) == "CANCEL"
  1109.         goto $(from)
  1110.     else
  1111.         goto "end"
  1112.     endif
  1113. nonfatalinfo = +
  1114.     Debug-Output "******************Entering nonfatalinfo******************"
  1115.     Set CommonStatus = STATUS_USERCANCEL
  1116.     Set Severity = STATUS
  1117.     goto nonfatalmsg
  1118. nonfatal = +
  1119.     Debug-Output "******************Entering nonfatal******************"
  1120.     Set Severity = NONFATAL
  1121.     goto nonfatalmsg
  1122. nonfatalmsg = +
  1123.     Debug-Output "******************Entering nonfatalmsg******************"
  1124.     ifstr(i) $(Error) == ""
  1125.         Set Severity = NONFATAL
  1126.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  1127.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1128.             goto ShellCodeError
  1129.         endif
  1130.         set Error = $($R0)
  1131.     endif
  1132.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
  1133.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1134.         goto ShellCodeError
  1135.     endif
  1136.     ifstr(i) $($R1) == "OK"
  1137.         goto $(from)
  1138.     else
  1139.         goto "end"
  1140.     endif
  1141. fatalregistry = +
  1142.     Debug-Output "******************Entering fatalregistry******************"
  1143.     Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
  1144.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1145.        Debug-Output "fatalregistry: shell to find RegistryErrorString failed."
  1146.        goto ShellCodeError
  1147.     endif
  1148.     set Error = $($R0)" - service "$(DigiSpecificString)"."
  1149.     ifstr(i) $(fRemoveDigi) == TRUE
  1150.         read-syms AbortMessage$(!STF_LANGUAGE)
  1151.         set Error = $(Error)$(!LF)$(!LF)$(AbortText)
  1152.     endif
  1153.     goto fatal
  1154. fataldetect = +
  1155.     Debug-Output "******************Entering fataldetect******************"
  1156.     Shell $(UtilityInf),RegistryErrorString,CANNOT_DETECT
  1157.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1158.         Debug-Output "ShellCode error: cannot get an error string."
  1159.         goto ShellCodeError
  1160.     endif
  1161.     set Error = $($R0)
  1162.     Goto fatal
  1163. fatal = +
  1164.     Debug-Output "******************Entering fatal******************"
  1165.     Debug-Output "OEMNADDS.INF: ---- fatal called"
  1166.     Shell $(subroutninf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
  1167.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1168.         Debug-Output "fatal: shell to SetupMessage failed."
  1169.         goto ShellCodeError
  1170.     endif
  1171.     goto setfailed
  1172. ShellCodeError = +
  1173.     Debug-Output "******************Entering ShellCodeError******************"
  1174.     set DlgType      = "MessageBox"
  1175.     set STF_MB_TITLE = "Error: "$(FunctionTitle)
  1176.     set STF_MB_TEXT  = "Shell Code Error"
  1177.     set STF_MB_TYPE  = 1
  1178.     set STF_MB_ICON  = 3
  1179.     set STF_MB_DEF   = 1
  1180.     ui start "Error Message"
  1181.     goto setfailed
  1182. setfailed = +
  1183.     Debug-Output "******************Entering setfailed******************"
  1184.     set CommonStatus = STATUS_FAILED
  1185.     ifstr(i) $(fRemoveDigi) == TRUE
  1186.         set fRemoveDigi = FALSE
  1187.         goto removeadapter
  1188.     endif
  1189.     goto end
  1190. end = +
  1191.     Debug-Output "******************Entering end******************"
  1192.     goto term
  1193. term = +
  1194.     ifstr(i) $(DGCONFIG_HANDLE) != $(HandleNull)
  1195.       FreeLibrary $(DGCONFIG_HANDLE)
  1196.     endif
  1197.     Debug-Output "******************Entering term -- GoodBye!!!******************"
  1198.     Return $(CommonStatus)
  1199. [RemoveFiles]
  1200.    Debug-Output "******************Entering [RemoveFiles]******************"
  1201.    set RemoveList = {}
  1202.    set RenameList = {}
  1203.    OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyNameHdwDriver) +
  1204.               $(MAXIMUM_ALLOWED) KeyProductHdwDriver
  1205.    ifstr $(KeyProductHdwDriver) == $(KeyNull)
  1206.       CloseRegKey $(KeyProductHdwDriver)
  1207.       set RenameList = >($(RenameList), $(!STF_WINDOWSSYSPATH)"\drivers\"$(AdapterHardwareDriver)".sys")
  1208.    endif
  1209.    OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) +
  1210.               $(MAXIMUM_ALLOWED) KeyProduct
  1211.    ifstr $(KeyProduct) == $(KeyNull)
  1212.       CloseRegKey $(KeyProduct)
  1213.       set RenameList = >($(RenameList), $(!STF_WINDOWSSYSPATH)"\drivers\"$(ProductSoftwareName)".sys")
  1214.       set RenameList = >($(RenameList), $(!STF_WINDOWSSYSPATH)"\dgconfig.dll")
  1215.       set RemoveList = >($(RemoveList), $(!STF_WINDOWSSYSPATH)"\dgconfig.hlp")
  1216.    endif
  1217.    Debug-Output "RemoveList = "$(RemoveList)
  1218.    Debug-Output "RenameList = "$(RenameList)
  1219.    ForListDo $(RemoveList)
  1220.        Debug-Output "Removing "$($)
  1221.        LibraryProcedure Status , $(!LIBHANDLE), DelFile $($)
  1222.        Debug-Output "Status is "$(Status)
  1223.    EndForListDo
  1224.    ForListDo $(RenameList)
  1225.        Debug-Output "RenameList entry = "$($)
  1226.        Split-String $($) "\" FilePath
  1227.        QueryListSize PathLen $(FilePath)
  1228.        Split-String *($(FilePath),$(PathLen)) "." FullFileName
  1229.        Set FileName = *($(FullFileName),1)
  1230.        Debug-Output "FileName is "$(FileName)
  1231.        LibraryProcedure STATUS, $(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\DRIVERS\"$(FileName)".old"
  1232.        Debug-Output "CheckFile Status = "$(STATUS)
  1233.        ifstr(i) $(STATUS) == YES
  1234.            LibraryProcedure STATUS, $(!LIBHANDLE), DelFile $(!STF_WINDOWSSYSPATH)"\DRIVERS\"$(FileName)".old"
  1235.            Debug-Output "Delfile Status = "$(STATUS)
  1236.            LibraryProcedure STATUS, $(!LIBHANDLE), DelFile $($)
  1237.            Debug-Output "Delfile Status = "$(STATUS)
  1238.        endif
  1239.        ifstr(i) $(fRemoveDigi) == TRUE
  1240.          Debug-Output "Renaming from "$($)
  1241.          Debug-Output "Renaming to "$(!STF_WINDOWSSYSPATH)"\DRIVERS\"$(FileName)".old"
  1242.          LibraryProcedure Status1 , $(!LIBHANDLE), RenFile $($), $(!STF_WINDOWSSYSPATH)"\DRIVERS\"$(FileName)".old"
  1243.          Debug-Output "Status is "$(Status1)
  1244.          AddFileToDeleteList $(!STF_WINDOWSSYSPATH)"\DRIVERS\"$(FileName)".old"
  1245.        endif
  1246.    EndForListDo
  1247.    exit
  1248. [ExCreateRegKey]
  1249.     Debug-Output "******************Entering [ExCreateRegKey]******************"
  1250.     set ECR_Result          = NO_ERROR
  1251.     set ECR_BaseKeyHandle   = $($0)
  1252.     set ECR_NewPath         = $($1)
  1253.     set KeyNull         = ""
  1254.     set MAXIMUM_ALLOWED   = 33554432
  1255.     Debug-Output "ExCreateRegKey - ECR_BaseKeyHandle = "$(ECR_BaseKeyHandle)
  1256.     Debug-Output "                 ECR_NewPath = "$(ECR_NewPath)
  1257.     Debug-Output "                 MAXIMUM_ALLOWED = "$(MAXIMUM_ALLOWED)
  1258.     Debug-Output "                 KeyNull = "$(KeyNull)
  1259.     OpenRegKey $(ECR_BaseKeyHandle) "" $(ECR_NewPath) $(MAXIMUM_ALLOWED) +
  1260.                ECR_BaseKey
  1261.     Debug-Output "ECR_BaseKey = "$(ECR_BaseKey)
  1262.     Debug-Output "    OpenRegKey returned "$($R0)
  1263.     Ifstr $(ECR_BaseKey) == $(KeyNull)
  1264.         Debug-Output "ECR_BaseKey == KeyNull"
  1265.     Else
  1266.         Debug-Output "ECR_BaseKey != KeyNull"
  1267.         set ECR_KeyHandle = $(ECR_BaseKey)
  1268.         goto  ECR_Return
  1269.     Endif
  1270.     set ECR_TmpPath = ""
  1271.     Split-String $(ECR_NewPath) "\" ECR_PList
  1272.     Debug-Output "ECR_PList = "$(ECR_PList)
  1273.     ForListDo $(ECR_PList)
  1274.         Ifstr(i) $($) != "\"
  1275.             Ifint $(#) == 1
  1276.                 set ECR_TmpPath = $($)
  1277.             Else
  1278.                 set ECR_TmpPath = $(ECR_TmpPath)"\"$($)
  1279.             Endif
  1280.             Debug-Output "Determining if "$(ECR_TmpPath)" exists"
  1281.             OpenRegKey $(ECR_BaseKeyHandle) "" $(ECR_TmpPath) $(MAXIMUM_ALLOWED) ECR_BaseKey
  1282.             Ifstr $(ECR_BaseKey) == $(KeyNull)
  1283.                 Debug-Output "Creating "$(ECR_TmpPath)
  1284.                 CreateRegKey $(ECR_BaseKeyHandle)  {$(ECR_TmpPath),0,GenericClass} "" $(MAXIMUM_ALLOWED) "" ECR_KeyHandle
  1285.                 Ifstr(i) $(ECR_KeyHandle) == $(KeyNull)
  1286.                     set ECR_Result = $($R0)
  1287.                     goto ECR_Return
  1288.                 Endif
  1289.             Endif
  1290.         Endif
  1291.     EndForListDo
  1292. ECR_Return = +
  1293.     return $(ECR_Result) $(ECR_KeyHandle)
  1294. [DebugExternalGlobals]
  1295.     Set InfName = "OEMNADDS.INF"
  1296.     Debug-Output $(InfName)" NTN_Origination = "$(!NTN_Origination)
  1297.     Debug-Output $(InfName)" NTN_InstallMode = "$(!NTN_InstallMode)
  1298.     Debug-Output $(InfName)" NTN_RegBase = "$(!NTN_RegBase)
  1299.     Debug-Output $(InfName)" NTN_SoftwareBase = "$(!NTN_SoftwareBase)
  1300.     Debug-Output $(InfName)" NTN_ServiceBase = "$(!NTN_ServiceBase)
  1301.     Debug-Output $(InfName)" STF_NTPATH = "$(!STF_NTPATH)
  1302.     Debug-Output $(InfName)" STF_NTWINDOWSSYSPATH = "$(!STF_WINDOWSSYSPATH)
  1303.     Debug-Output $(InfName)" STF_CWDIR = "$(!STF_CWDIR)
  1304.     Debug-Output $(InfName)" STF_LANGUAGE = "$(!STF_LANGUAGE)
  1305.     Debug-Output $(InfName)" STF_NCDETECT  = "$(!STF_NCDETECT)
  1306.     Debug-Output $(InfName)" STF_NCOPTION  = "$(!STF_NCOPTION)
  1307.     Debug-Output $(InfName)" STF_NCDETCARD = "$(!STF_NCDETCARD)
  1308.     Debug-Output $(InfName)" STF_NCDETINFO = "$(!STF_NCDETINFO)
  1309.     Debug-Output $(InfName)" STF_INSTALL_MODE = "$(!STF_INSTALL_MODE)
  1310.     Debug-Output $(InfName)" STF_CONTEXTINFNAME = "$(!STF_CONTEXTINFNAME)
  1311.     return
  1312. [DebugConfiguration]
  1313.     Set InfName = "OEMNADDS.INF"
  1314.     Debug-Output $(InfName)" **CONFIGURATION STATE: "$($0)
  1315.     Debug-Output $(InfName)" IRQ_Level is "$(!p:IRQ_Level)
  1316.     Debug-Output $(InfName)" IOBaseAddrValue is "$(!p:IOBaseAddrValue)
  1317.     Debug-Output $(InfName)" TransceiverValue is "$(!p:TransceiverValue)
  1318.     Debug-Output $(InfName)" MemBaseAddrDec is "$(!p:MemBaseAddrDec)
  1319.     Debug-Output $(InfName)" MappedValue is "$(!p:MappedValue)
  1320.     return
  1321. [AdapterSettings-ntcx]
  1322. IRQRangeList = {"Disabled"}
  1323. MemoryRangeList = {"C0000","C8000","D0000","D8000","E0000","E8000"}
  1324. IORangeList = {"108","118","128","208","228","308","328"}
  1325. IRQDefault = 0
  1326. MemoryDefault = 2
  1327. IODefault = 4
  1328. [AdapterSettings-ntxem]
  1329. IRQRangeList = {"Disabled"}
  1330. MemoryRangeList = {"C0000","C8000","D0000","D8000","E0000","E8000"}
  1331. IORangeList = {"104","114","124","204","224","304","324"}
  1332. IRQDefault = 0
  1333. MemoryDefault = 2
  1334. IODefault = 4
  1335. [AdapterSettings-nt4i]
  1336. IRQRangeList = {"Disabled"}
  1337. MemoryRangeList = {"C0000","D0000","E0000"}
  1338. IORangeList = {"100","110","120","200","220","300","320"}
  1339. IRQDefault = 0
  1340. MemoryDefault = 1
  1341. IODefault = 4
  1342. [AdapterSettings-nt8i]
  1343. IRQRangeList = {"Disabled"}
  1344. MemoryRangeList = {"C0000","D0000","E0000"}
  1345. IORangeList = {"100","110","120","200","220","300","320"}
  1346. IRQDefault = 0
  1347. MemoryDefault = 1
  1348. IODefault = 4
  1349. [AdapterSettings-nt16i]
  1350. IRQRangeList = {"Disabled"}
  1351. MemoryRangeList = {"C0000","D0000","E0000"}
  1352. IORangeList = {"100","110","120","200","220","300","320"}
  1353. IRQDefault = 0
  1354. MemoryDefault = 1
  1355. IODefault = 4
  1356. [AdapterSettings-nt16e]
  1357. IRQRangeList = {"Disabled"}
  1358. MemoryRangeList = {"C0000","D0000","E0000", }
  1359. IORangeList = {"100","110","120","200","220","300","320"}
  1360. IRQDefault = 0
  1361. MemoryDefault = 1
  1362. IODefault = 4
  1363. [AdapterSettings-nt8e]
  1364. IRQRangeList = {"Disabled"}
  1365. MemoryRangeList = {"C0000","D0000","E0000", }
  1366. IORangeList = {"100","110","120","200","220","300","320"}
  1367. IRQDefault = 0
  1368. MemoryDefault = 1
  1369. IODefault = 4
  1370. [AdapterSettings-nt4e]
  1371. IRQRangeList = {"Disabled"}
  1372. MemoryRangeList = {"C0000","D0000","E0000", }
  1373. IORangeList = {"100","110","120","200","220","300","320"}
  1374. IRQDefault = 0
  1375. MemoryDefault = 1
  1376. IODefault = 4
  1377. [AdapterSettings-2Port]
  1378. IRQRangeList = {"Disabled"}
  1379. MemoryRangeList = {"C0000","C2000","C4000","C6000","C8000", "CA000", "CC000", "CE000", +
  1380.                "D0000","D2000","D4000","D6000","D8000", "DA000", "DC000", "DE000", +
  1381.                "E0000","E2000","E4000","E6000","E8000", "EA000", "EC000", "EE000" }
  1382. IORangeList = {"100","110","120","200","220","300","320"}
  1383. IRQDefault = 0
  1384. MemoryDefault = 8
  1385. IODefault = 4
  1386. [AdapterSettings-4Port]
  1387. IRQRangeList = {"Disabled"}
  1388. MemoryRangeList = {"C0000","C2000","C4000","C6000","C8000", "CA000", "CC000", "CE000", +
  1389.                "D0000","D2000","D4000","D6000","D8000", "DA000", "DC000", "DE000", +
  1390.                "E0000","E2000","E4000","E6000","E8000", "EA000", "EC000", "EE000" }
  1391. IORangeList = {"100","110","120","200","220","300","320"}
  1392. IRQDefault = 0
  1393. MemoryDefault = 8
  1394. IODefault = 4
  1395. [AdapterSettings-8Port]
  1396. IRQRangeList = {"Disabled"}
  1397. MemoryRangeList = {"C0000","C2000","C4000","C6000","C8000", "CA000", "CC000", "CE000", +
  1398.                "D0000","D2000","D4000","D6000","D8000", "DA000", "DC000", "DE000", +
  1399.                "E0000","E2000","E4000","E6000","E8000", "EA000", "EC000", "EE000" }
  1400. IORangeList = {"100","110","120","200","220","300","320"}
  1401. IRQDefault = 0
  1402. MemoryDefault = 8
  1403. IODefault = 4
  1404. [BindingInfo-DigiFEP5]
  1405. BindingInfo =   {+
  1406.                 "digiFEP5Driver ntcxDriver non exclusive 100", +
  1407.                 "digiFEP5Driver ntxemDriver non exclusive 100", +
  1408.                 "digiFEP5Driver ntxallDriver non exclusive 100" +
  1409.                 }
  1410. [BindingInfo-ntxem]
  1411. BindingInfo     = {+
  1412.                   $(AdapterHardwareDriver)"Driver "$(AdapterHardwareDriver)"Adapter non exclusive 100", +
  1413.                   }
  1414. [BindingInfo-ntcx]
  1415. BindingInfo     = {+
  1416.                   $(AdapterHardwareDriver)"Driver "$(AdapterHardwareDriver)"Adapter non exclusive 100", +
  1417.                   }
  1418. [BindingInfo-ntxall]
  1419. BindingInfo     = {+
  1420.                   $(AdapterHardwareDriver)"Driver "$(AdapterHardwareDriver)"Adapter non exclusive 100" +
  1421.                   }
  1422. [InstallResources]
  1423.     set STF_VITAL = ""
  1424.     Debug-Output "OEMNADDS.INF: [InstallResources]"
  1425.     AddSectionFilesToCopyList Files-Resource $(!SourceDir) $(!STF_WINDOWSSYSPATH)
  1426.     CopyFilesInCopyList
  1427.     Debug-Output "OEMNADDS.INF: [InstallResources] - Exiting"
  1428.     exit
  1429. [Install-Option]
  1430.     set STF_VITAL = ""
  1431.     ifstr(i) $(AddCopy) == "YES"
  1432.         AddSectionFilesToCopyList Files-Resource $(SrcDir) $(!STF_WINDOWSSYSPATH)
  1433.         AddSectionFilesToCopyList Files-DigiFEP5 $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  1434.         AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  1435.     endif
  1436.     ifstr(i) $(DoCopy) == "YES"
  1437.        set !STF_NCPA_FLUSH_COPYLIST = TRUE
  1438.        CopyFilesInCopyList
  1439.     endif
  1440.     ifstr(i) $(DoConfig) == "YES"
  1441.     endif
  1442.     Exit
  1443. [Source Media Descriptions]
  1444.     1  = "Windows NT Advanced Server Setup Disk #1"    , TAGFILE = disk1
  1445.     2  = "Windows NT Advanced Server Setup CD-ROM Disk"    , TAGFILE = disk2
  1446. [ProductType]
  1447. STF_PRODUCT  = LanmanNT
  1448. STF_PLATFORM = I386
  1449. [Files-Inf]
  1450. 2,    oemsetup.inf,     SIZE=1000,    RENAME=$(!UG_Filename)
  1451. [Files-DigiBoard16e]
  1452. 2,NTXALL.SYS , SIZE=999
  1453. [Files-DigiBoard16i]
  1454. 2,NTXALL.SYS , SIZE=999
  1455. [Files-DigiBoard2Port]
  1456. 2,NTXALL.SYS , SIZE=999
  1457. [Files-DigiBoard4e]
  1458. 2,NTXALL.SYS , SIZE=999
  1459. [Files-DigiBoard4i]
  1460. 2,NTXALL.SYS , SIZE=999
  1461. [Files-DigiBoard4Port]
  1462. 2,NTXALL.SYS , SIZE=999
  1463. [Files-DigiBoard8e]
  1464. 2,NTXALL.SYS , SIZE=999
  1465. [Files-DigiBoard8i]
  1466. 2,NTXALL.SYS , SIZE=999
  1467. [Files-DigiBoard8Port]
  1468. 2,NTXALL.SYS , SIZE=999
  1469. [Files-DigiBoardCX]
  1470. 2,NTCX.SYS , SIZE=999
  1471. [Files-DigiBoardXem]
  1472. 2,NTXEM.SYS , SIZE=999
  1473. [Files-DigiFEP5]
  1474. 2,DIGIFEP5.SYS , SIZE=999
  1475. [Files-Resource]
  1476. 2,DGCONFIG.HLP , SIZE=999
  1477. 2,DGCONFIG.DLL , SIZE=999
  1478. [OptionsTextENG]
  1479.     DigiBoardCX     = "DigiBoard C/X Adapter"
  1480.     DigiBoardXem    = "DigiBoard PC/Xem Adapter"
  1481.     DigiBoard8i     = "DigiBoard PC/8i Adapter"
  1482.     DigiBoard16i    = "DigiBoard PC/16i Adapter"
  1483.     DigiBoard2Port  = "DigiBoard 2Port Adapter"
  1484.     DigiBoard4Port  = "DigiBoard 4Port Adapter"
  1485.     DigiBoard8Port  = "DigiBoard 8Port Adapter"
  1486.     DigiBoard4e     = "DigiBoard PC/4e Adapter"
  1487.     DigiBoard8e     = "DigiBoard PC/8e Adapter"
  1488.     DigiBoard16e    = "DigiBoard PC/16e Adapter"
  1489. [OptionsTextMCAENG]
  1490.     DigiBoardCX     = "DigiBoard MC C/X Adapter"
  1491.     DigiBoardXem    = "DigiBoard MC/Xem Adapter"
  1492.     DigiBoard4i     = "DigiBoard MC/4i Adapter"
  1493.     DigiBoard8i     = "DigiBoard MC/8i Adapter"
  1494.     DigiBoard16i    = "DigiBoard MC/16i Adapter"
  1495.     DigiBoard2Port  = "DigiBoard 2Port Adapter"
  1496.     DigiBoard4Port  = "DigiBoard 4Port Adapter"
  1497.     DigiBoard8Port  = "DigiBoard 8Port Adapter"
  1498. [FileConstantsENG]
  1499.     ProCaption   = "DigiBoard Setup"
  1500.     ProCancel    = "Cance&l"
  1501.     ProCancelMsg = "DigiBoard Adapters and/or Drivers are not correctly installed. "+
  1502.                    "Are you sure you want to cancel copying files?"
  1503.     ProCancelCap = "DigiBoard Setup Message"
  1504.     ProText1     = "Copying:"
  1505.     ProText2     = "To:"
  1506.     Error         = "Unable to determine proper source disk location; copy cannot be performed."
  1507.     FunctionTitle   ="DigiBoard Setup"
  1508.     ProductSoftwareDescription          = "DigiBoard FEP 5 Adapter Driver"
  1509.     ProductSoftwareDescriptionHdwDriver = "DigiBoard "$(AdapterTitle)" Miniport Driver"
  1510.     ProductSoftwareTitle    = "DigiBoard FEP 5 Driver"
  1511.     ProductSoftwareTitleHdwDriver = "DigiBoard "$(AdapterTitle)" Miniport Driver"
  1512.    ConfigurationTitle = "DigiBoard "$(AdapterTitle)" Adapter Setup"
  1513.     ProductHardwareDescription      = "DigiBoard "$(AdapterTitle)" Adapter"
  1514.     ProductHardwareTitle        = "DigiBoard "$(AdapterTitle)" Adapter"
  1515. [DialogConstantsENG]
  1516.     Help        = "&Help"
  1517.     Exit        = "E&xit"
  1518.     OK          = "OK"
  1519.     HelpContext = ""
  1520.     Continue    = "C&ontinue"
  1521.     Cancel      = "C&ancel"
  1522. [UpdatingConfigurationENG]
  1523.     UpdatingConfiguration      = "Updating new configuration..."
  1524. [AbortMessageENG]
  1525.   AbortText  =  "Aborting DigiBoard Setup. Please reboot the system "+
  1526.                 "to fix the problem."
  1527.  
  1528.  
  1529.  
  1530.